package com.tao.user.api.pojo;


import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterRequest {
    @NotBlank(message = "用户名不能为空")
    @Length(min = 3, max = 20, message = "用户名长度不满足3-20")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Length(min = 8, max = 20, message = "密码长度不满足8-20")
    private String password;
    @Length(max = 64, message = "github地址长度不能超过64")
    private String githubUrl;
    @NotBlank(message = "邮箱不能为空")
    @Length(max = 20, message = "邮箱长度不能超过20")
    private String email;

}
